package mogiksaop.qliphoth.common.entities.helpers;

public class IncrementingVariable {
	public float value;
	public float increment;
	public float limit;

	public IncrementingVariable(float increment, float limit) {
		this.value = 0.0F;
		this.increment = increment;
		this.limit = limit;
	}

	public void tick() {
		this.value += this.increment;
		if (this.value >= this.limit) {
			this.value = 0.0F;
		} else if (this.value < 0.0F) {
			this.value = this.limit;
		}
	}
}